<%@ page language="java" pageEncoding="utf8"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <title>Movie System</title>
     	<meta http-equiv="Content-Type" content="text/html; charset=utf8">  
        <style type="text/css">
            @import url("script/dijit/themes/tundra/tundra.css");
            @import url("script/dojo/resources/dojo.css");
            @import url("script/dojox/grid/_grid/Grid.css");
            @import url("script/dojox/grid/resources/Grid.css"); 
			@import url("script/dojox/grid/resources/tundraGrid.css"); 
            @import url("script/dojox/layout/resources/RadioGroup.css"); 
            .heading {
                font-weight: bold;
                padding-bottom: 0.25em;
            } .bigHello {
                height: 110px;
                line-height: 110px;
                text-align: center;
                font-weight: bold;
                font-size: 30px;
            } #grid {
                border: 1px solid #333;
                height: 30em;
            } .box {
                margin-top: 10px;
                color: #292929;
                width: 95%;
                border: 1px solid #BABABA;
                background-color: #ddd;
                padding-left: 5px;
                padding-right: 10px;
                margin-left: 10px;
                margin-bottom: 1em;
                -o-border-radius: 10px;
                -moz-border-radius: 12px;
                -webkit-border-radius: 10px;
                -webkit-box-shadow: 0px 3px 7px #adadad;
                border-radius: 10px;
                -moz-box-sizing: border-box;
                -opera-sizing: border-box;
                -webkit-box-sizing: border-box;
                -khtml-box-sizing: border-box;
                box-sizing: border-box;
                overflow: hidden;
            }
        </style>

<SCRIPT src="images/common.js" type=text/javascript></SCRIPT>
        
        <script type="text/javascript" src="script/dojo/dojo.js" djConfig="parseOnLoad: true"></script>
        <script type="text/javascript" src="script/util.js"></script>
        <script type="text/javascript" src="script/search.js"></script>
        <script type="text/javascript" src="script/head.js"></script>
        <script type="text/javascript">
        	dojo.addOnLoad(function(){
        	});
		</script>
        <script type="text/javascript">
            dojo.require("dojo.parser");
            dojo.require("dijit.Dialog");
            dojo.require("dijit.form.CheckBox");
            dojo.require("dijit.form.Button");
            dojo.require("dijit.form.ComboBox");
            dojo.require("dijit.form.TextBox");
            dojo.require("dijit.form.Textarea");
            dojo.require("dojo.data.ItemFileWriteStore");
            dojo.require("dijit.form.DateTextBox");
            dojo.require("dojox.grid.DataGrid");
            dojo.require("com.ibm.sherpa.Loader");
            
            var publishYear = {
            	items:[]
            };
            
            var publishYearStore = new dojo.data.ItemFileWriteStore({
	         	data:publishYear
	         });
            
            var categoryData = {
	         	items:[]
	         };
	        
	         var categoryStore = new dojo.data.ItemFileWriteStore({
	         	data:categoryData
	         });
            
            
        </script>
        <script type="text/javascript">
        	window.basePath = "<%=basePath%>";
        </script>
        <link href="theme/global_color.css" rel="stylesheet" type="text/css" />
        <link href="theme/mainstyle.css" rel="stylesheet" type="text/css" />
        <style type="text/css">        
        </style>
        

    </head>
    <body class="tundra">
    <div id="loadDiv" dojoType="com.ibm.sherpa.Loader">
    </div>
        <div id="contain">
            <div id="box">
                <div id="menubar">
                    <div id="header">
                        <div class="logo">
                            BookStore
                        </div>
                        <div class="userpanel">
                            <div class="menuLabels">
                             	<logic:empty name="user">
                                	<a id="account" href="userLogin.jsp">用户登录</a>
                                </logic:empty>
                                <logic:notEmpty name="user">
                                	<a id="account" href="userInfo.jsp">我的空间</a>
                                </logic:notEmpty>
                                <label>
                                    |
                                </label>
                                <logic:empty name="user">
                                	<a href="register.jsp">注册</a>
                                </logic:empty>
                                <logic:notEmpty name="user">
                                	<a href="/movieSystem/logout.do">退出</a>
                                </logic:notEmpty>
                                <label>
                                    |
                                </label>
                                <a id="helpCenter" href="help.html">帮助中心</a>
                            </div>
                            <div class="userinfo">
                                
                            </div>
                            
                        </div>
                    </div>
                    <div class="ml"></div>
                    <div class="mm">
                        <ul class="menu">
                            <li>
                                <a id="a_homePage" onmouseover="hideSubMenus()" onfocus="hideSubMenus()" href="index.jsp"><span class="l"></span><span id="home">主页</span></a>
                            </li>
                            <li onmouseover="showSubMenu('sub1')" onmouseout="hideSubMenu('sub1')">
                                <a onmouseover="hideSubMenus('sub1')" onfocus="hideSubMenus('sub1')" href="#"><span class="l"></span>影讯动态</a>
                                <ul class="submenu" id="sub1" onmouseover="showSubMenu('sub1')" onmouseout="hideSubMenu('sub1')">
                                    <li>
                                        <a id="sub1child1" onfocus="showSubMenu('sub1')" href="">今日影讯</a>
                                    </li>
                                    <li>
                                        <a id="sub1child2" onfocus="showSubMenu('sub1')" href="">明日影讯</a>
                                    </li>
                                    <li class="submenu-bottom">
                                        <div class="sl"></div>
                                        <div class="sm"></div>
                                        <div class="sr"></div>
                                    </li>
                                </ul>
                            </li>
                            <li onmouseover="showSubMenu('sub2')" onmouseout="hideSubMenu('sub2')">
                                <a onmouseover="hideSubMenus('sub2')" onfocus="hideSubMenus('sub2')" href="#"><span class="l"></span>影片预告</a>
                                <ul class="submenu" id="sub2" onmouseover="showSubMenu('sub2')" onmouseout="hideSubMenu('sub2')">
                                    <li>
                                        <a id="sub2child1" onfocus="showSubMenu('sub2')" href="#">本月上映</a>
                                    </li>
                                    <li>
                                        <a id="sub2child2" onfocus="showSubMenu('sub2')" href="#">长期预告</a>
                                    </li>
                                    <li class="submenu-bottom">
                                        <div class="sl"></div>
                                        <div class="sm"></div>
                                        <div class="sr"></div>
                                    </li>
                                </ul>
                            </li>
                            <!--<li><a href="#"><span class="l"></span>Update user pofile</a></li>-->
                            <li>
                                <a id="a_bookTickets" href="movieSession.jsp"><span class="l"></span>网上订票</a>
                            </li>
                            <li>
                                <a id="a_bookTickets" href="cinemaIntro.jsp"><span class="l"></span>影院信息</a>
                            </li>
                        </ul>
                    </div>
                    <div class="mr">
                    </div>
                </div>
                <div id="main">
                    <div class="mainl">
                    </div>
                    <div class="mainr">
                    </div>
                    <div class="mainpic">
                        <div class="main-des">
                            <div class="searchbase">
                                <!-- search base --><!--<div class="searchl"></div>-->
                                <div class="search-con" id="SearchDiv1">
                                <form name="searchForm" onsubmit="return checkSimpleSearch()" method="post" action="movieSearch.do">
                                    <table border="0" id="searchTable">
                                        <tbody>
                                            <tr>
                                                <td>
                                                    <span class="searchicon" style="margin-right:10px;"></span>
                                                </td>
                                                <td width="50px" align="right">
                                                    <span>
                                                        <label for="searchBy">搜索</label>
                                                    </span>
                                                </td>
                                                <td width="280px">
                                                    <span class="round-input"><span class="round-l"></span><span class="round-r">
                                                    <input id="searchWord" name="searchWord" style="width:250px;" dojoType="dijit.form.TextBox"/>
                                                    </span></span>
                                                </td>
                                                <td width="60px" align="right">
                                                    <span style="float:right;">
                                                        <label for="searchWord">选择&nbsp;</label>
                                                    </span>
                                                </td>
                                                <td width="200px">
                                                    <span class="round-input">
                                                    	<span class="round-l"></span>
                                                    	<span class="round-r">
                                                            <select id="searchScope" name="searchScope" style="width:150px;" dojoType="dijit.form.ComboBox">
                                                                <option value="Owner" selected="selected">电影名</option>
                                                                <option value="Owner">主演</option>
                                                                <option value="Owner">导演</option>
                                                                <!-- drop down -->
                                                            </select>
                                                        </span>
                                                	</span>
                                                </td>
                                                <td>
                                                    <span class="orange-btn"><span class="inputbtn"> <span
													class="l"></span> 
													<input type="hidden" id="isAsc" name="isAsc" value="true">
													<input type="hidden" id="formFlag" name="formFlag" value="true">
													<input type="hidden" id="orderBy" name="orderBy" value="movieName">
													<input type="hidden" id="startIndex" name="startIndex" value="0">
													<input type="submit" value='搜索'></input>
													</span></span>
                                                    <!-- Search button -->
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                 </form>
                               </div>
                                <!-- search-con -->
                            </div>
                        </div>
                    </div>
                    <div id="leftPanel">
                        <div class="leftCcontanor">
                            <div class="leftTab">
                                <div class="tabText">影院快讯</div>
                                <div class="leftTab_right"></div>
                            </div>
                            <div class="leftContent" style="height:210px;">
                                <marquee direction="up" height="200" onmouseout="this.start()" onmouseover="this.stop()" scrollAmount="1" scrollDelay="1"><a href='newsInfo.jsp?newsId=1'>圣诞迎新嘉年华</a></marquee>
                                
                            </div>
                        </div>
                        
                        <div class="leftCcontanor">
                            <div class="leftTab">
                                <div class="tabText">
                                    本月排行
                                </div>
                                <div class="leftTab_right">
                                </div>
                            </div>
                            <div class="leftContent" style="height:400px;">
                            <h3>中国大陆</h3>     
                                <ul class="list" id="authors_Container">
                                  
                                    <li>花木兰</li>
                                    <li>三枪拍案惊奇</li>
                                    <li>刺陵</li>
                                    <li>十月围城</li>
                                    <li>我的唐朝兄弟</li>
                                    <li>风声</li>
                                    <li>午夜出租车</li>
                                    <li>七天爱上你</li>
                                    <li>喜洋洋与灰太狼之牛气冲天</li>
                                    <li>赤壁</li>
                                </ul>
                           	<div class="HackBox">
                            </div>
                                <h3>欧美</h3>
                                <ul class="list">
                                    <li>阿凡达</li>
                                    <li>暮光之城</li>
                                    <li>2012</li>
                                    <li>迈克尔·杰克逊：就是这样</li>
                                    <li>第九区</li>
                                    <li>福尔摩斯</li>
                                    <li>艾尔文与花栗鼠2</li>
                                    <li>在云端</li> 
                                    <li>温情橄榄枝</li>
                                    <li>公主与青蛙</li>
                                    <li>圣诞颂歌</li>  
                                </ul>
                            </div>
                        </div>
                    </div>             
                    <!-- end -->
                    
